package com.casicloud.manage.service;

import java.util.List;

import com.casicloud.manage.model.User;
import com.casicloud.manage.model.UserRole;
import com.common.sub.util.PageUtil;
import com.github.pagehelper.PageInfo;

public interface UserService {
	
	public User findByUserNameAndPassword(User user);
	
	List<User> findByList(User user);
	
	PageInfo<User> findByPage(PageUtil pageUtil ,User user);
	
	User findByOne(User user);
	
	void save(User user);
	
	int update(User user);
	
	int delete(User user);
	
	
	int updateRole(User user,Integer ...roleIds);
	

}
